package com.intelligentclass.repositories;

import com.intelligentclass.entity.Notice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface NoticeRepository extends JpaRepository<Notice, Integer> {

    // 根据 noticeCid 查询公告列表
    List<Notice> findByNoticeCid(String cid);
}
